import request from '@/utils/request'


export const getIndexImageIndexxinren = (params: any) => request.get({ url: '/getIndexImage', data: params })

export const getyouhuiquanIndex = (params: any) => request.get({ url: '/coupon/list', data: params })


export const postreceivecouponid = (params: any) => request.post({ url: '/coupon/receive/coupon/' + params })

export const apiUserCouponList = (params: any) => request.get({ url: '/coupon/user/coupon', data: params })
export const postcollectcode = (params: any) => request.post({ url: '/coupon/collect/code/' + params })
export const postgoodscoupon = (params: any) => request.post({ url: '/coupon/goods/coupon/' + params })

export const getGoodsByCouponId = (id: any) => request.post({ url: `/coupon/getGoodsByCouponId/${id}` })